import http from '@/pages/utils/http.js'
// -发送短信验证码接口
const reqcode = data => http.post('/api/member/sendcode', data)
// 会员登录（验证码登录方式）接口
const reqloginone = data => http.post('/api/member/loginByCode', data)
// 会员登录（密码登录方式）接口
const reqlogintwo = data => http.post('/api/member/login', data)
// 会员注册手机号验证
const regByCode = data => http.post('/api/member/regByCode', data)
// 会员注册
const regpass = data => http.post('/api/member/reg', data)
// 获取门店信息列表接口
const shoplist = data => http.get('/api/user/stores/list', data)
// 获取单条门店信息接口
const shoplistone = data => http.get('/api/user/stores/get', data)
// 获取公告列表接口
const newslist = data => http.get('/api/user/news/list', data)
// 获取单条门店信息接口
const reqStoresGet = data => http.get('/api/user/stores/get', data)
// 找回忘记密码
const updatapass = data => http.post('/api/user/member/changePassForget', data)
// 获取楼栋列表接口
const reqhouselist = data => http.get('/api/user/building/list', data)	
// 获取房间列表接口
const reqhouses = data => http.get('/api/user/houses/list', data)	
// 获取居民类型列表接口
const requsertype = data => http.get('/api/user/userinfotype/list', data)	
// 添加居民接口
const reqaddHouse = data => http.post('/api/user/userinfo/add', data)	
// 修改个人资料
const updataUser = data => http.post('/api/user/member/update', data)	
// 会员修改手机号
const updataCode = data => http.post('/api/user/member/checkCode', data)
// 会员修改手机号短信码验证
const updatatel= data => http.post('/api/user/member/changeMobileByCode', data)
// 获取注册用户房屋认证情况接口
const houseCheck = data => http.get('/api/user/houses/check', data)	
// 生活缴费列表接口
const feelist = data => http.get('/api/user/fee/list', data)	
// 获取我的车辆接口
const carlist = data => http.get('/api/user/car/list', data)	
// 获取缴费类型接口
const feetypelist = data => http.get('/api/user/feetype/list', data)	
// 添加车辆接口
const addcar = data => http.post('/api/user/car/add', data)
// 批量删除我的车辆接口
const delscar = data => http.post('/api/user/car/deleteall', data)
// 获取维修管理列表接口
const repairslist = data => http.get('/api/user/repairs/list', data)
// 获取维修类型列表接口
const repairstypelist = data => http.get('/api/user/repairstype/list', data)
// 添加维修接口
const addrepairs = data => http.post('/api/user/repairs/add', data)
// 删除维修接口 
const repairsdel = data => http.get('/api/user/repairs/delete', data)
// 获取单条报修详情接口
const repairdetail = data => http.get('/api/user/repairs/get', data)
// 获取反馈问题列表
const questionslist = data => http.get('/api/user/questions/list', data)
// 删除反馈问题接口
const questionsdel = data => http.get('/api/user/questions/delete', data)
// 添加反馈信息接口
const addquestions = data => http.post('/api/user/questions/add', data)
// 获取问题类型列表接口
const questiontypelist = data => http.get('/api/user/questiontype/list', data)
// 获取单条门店信息接口
const questionsdetail = data => http.get('/api/user/questions/get', data)
export {
	reqcode,
	reqloginone,
	reqlogintwo,
	regByCode,
	regpass,
	shoplist,
	shoplistone,
	newslist,
	reqStoresGet,
	updatapass,
	reqhouselist,
	reqhouses,
	requsertype,
	reqaddHouse,
	updataUser,
	updataCode,
	updatatel,
	houseCheck,
	feelist,
	carlist,
	feetypelist,
	addcar,
	delscar,
	repairslist,
	repairstypelist,
	addrepairs,
	repairsdel,
	repairdetail,
	questionslist,
	addquestions,
	questionsdel,
	questiontypelist,
	questionsdetail
}
